package com.milo.enums;

import lombok.Data;

/**
 * 性别枚举
 * @author Milo Lee
 * @date 2021-12-13 15:41
 *
 */
public enum SexEnum {

    male(1,"男"),
    female(2,"女");

    private int sex;
    private String desc;


    SexEnum(int sex, String desc){
        this.sex = sex;
        this.desc = desc;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}

